package com.framework.app.controller.api;

import com.framework.app.entity.vo.AppMemberVO;
import com.framework.app.service.IAppMemberService;
import com.framework.core.common.enums.UserPlatformEnum;
import com.framework.core.log.annotation.AutoLog;
import com.framework.core.result.R;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 会员表 前端控制器
 * </p>
 *
 * @author Kevin
 * @since 2022-05-03
 */
@RestController
@RequestMapping("/app/appApi/appMember")
@AllArgsConstructor
public class ApiAppMemberController {

    private IAppMemberService appUserService;

    /**
     * 获取用户信息
     */
    @GetMapping("/getUserInfo")
    @AutoLog(module = "会员管理", title = "获取用户信息", userPlatform = UserPlatformEnum.APP)
    public R<AppMemberVO> getUserInfo() {
        return R.success(appUserService.getUserInfo());
    }
}

